package cn.stormbirds.stpaylib.bean;

/**
 * Copyright (c) 小宝 @2019
 *
 * @ Package Name:    cn.stormbirds.stpaylib.bean
 * @author         stormbirds
 * @ Email：          xbaojun@gmail.com
 * @ Created At：     2019/6/26 18:42
 * @ Description：
 */


public class STPayCodes {
    /**
     * 支付成功PayResult返回状态码
     */
    public static final int CODE_SUCCESS = 2000;

    /**
     * 支付渠道代码
     */
    public static final int CHANNEL_WXPAY = 1;
    public static final int CHANNEL_ALIPAY = 2;
    public static final int CHANNEL_PAYPALPAY = 3;
    public static final int CHANNEL_UNIONPAY = 4;
    public static final int CHANNEL_FUIOUPAY = 5;
    public static final int CHANNEL_PAYONEERPAY = 6;
    public static final int CHANNEL_WXYOUDIANPAY = 7;

    /**
     * 支付方式
     */
    public static final int TRANSACTION_APP = 1;
    /**
     * 不支持的支付渠道
     */
    public static final int CHANNEL_NOT_SUPPORT = -1;

    /**
     * 获取预订单出错
     */
    public static final int CODE_ERROR_CHARGE_REQUEST = 4001;
    /**
     * 订单解析错误
     */
    public static final int CODE_ERROR_CHARGE_PARAMETER = 4002;
    public static final int CODE_ERROR_CHANNEL = 4003;
    /**
     * 用户取消支付
     */
    public static final int CODE_FAIL_CANCEL = 4004;
    /**
     * 支付失败
     */
    public static final int CODE_ERROR_FAIL = 4005;
    /**
     * 支付所需权限被拒绝
     */
    public static final int CODE_ERROR_PERMISSION_DENIED = 4006;
    /**
     * 客户端错误
     */
    public static final int CODE_ERROR_CLIENT = 4007;
    /**
     * 微信未安装
     */
    public static final int CODE_ERROR_WX_NOT_INSTALL = 4101;
    /**
     * 微信不支持
     */
    public static final int CODE_ERROR_WX_NOT_SUPPORT_PAY = 4102;
    /**
     * 微信支付 未知错误
     */
    public static final int CODE_ERROR_WX_UNKNOW = 4103;
    /**
     * 微信支付 微信appid注册失败
     */
    public static final int CODE_ERROR_WX_APPID_FAIL = 4104;
    /**
     * 阿里支付 正在处理中，支付结果未知（有可能已经支付成功），请查询商户订单列表中订单的支付状态
     */
    public static final int CODE_ERROR_ALI_DEAL = 4201;
    /**
     * 阿里支付 网络连接出错
     */
    public static final int CODE_ERROR_ALI_CONNECT = 4202;
}
